package com.tvunetworks.center.user.config.mybatis;

/**
    * @ClassName: MyBatisMapperScannerConfig  
    * @Description: Mybatis BasePackage配置
    * @author lebron  
    * @date 2018年4月11日  
    *    
    */  
//@Configuration
////注意，由于MapperScannerConfigurer执行的比较早，所以必须有下面的注解
//@AutoConfigureAfter(MybatisConfiguration.class)
//public class MyBatisMapperScannerConfig {
//
//  @Bean
//  public MapperScannerConfigurer mapperScannerConfigurer() {
//      MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer();
//      mapperScannerConfigurer.setSqlSessionFactoryBeanName("sqlSessionFactory");
//      //由于MapperScannerConfigurer在配置文件值注入之前注入，所以这里必须硬编码
//      mapperScannerConfigurer.setBasePackage("com.tvunetworks.center.user.mapper");
//      return mapperScannerConfigurer;
//  }
//
//}
